<?php

class PageUrlsResource extends Resource
{
    const ID = "pages/urls";

    public function GetId()
    {
        return self::ID;
    }

    public function GetFreshData()
    {
        $page_url = array();
        $pages = $this->resourceManager->GetPages();

        if ( !empty($pages) )
        {
            foreach ( $pages as $page )
            {
                $page_url[$page->id] = $page->path;
            }
        }
        return $page_url;
    }
}

?>
